package com.lm.shop.order.feign;

import com.lm.shop.common.utils.R;
import com.lm.shop.order.feign.impl.ProductFeignServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.validation.Valid;

/**
 * @author lsk
 * @version 1.0.0
 * @ClassName ProductFeignService.java
 * @Description 产品feign服务接口
 * @createTime 2022年11月02日 00:05:00
 */
@FeignClient(value = "SHOP-PRODUCT", fallback = ProductFeignServiceImpl.class)
public interface ProductFeignService {

    @GetMapping("/product/getProductById/{id}")
     R getProductById(@PathVariable("id") Long id);

}
